package com.yycx.module.bus.client.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yycx.common.mybatis.annotation.TableAlias;
import com.yycx.common.mybatis.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 批号
 *
 * @author flyme
 * @date 2020-08-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_drugslot")
@TableAlias("drugslot")
@ApiModel(value = "BusDrugslog对象", description = "批号")
public class BusDrugslot extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "drugsLotId", type = IdType.ASSIGN_ID)
    private Long drugsLotId;

    @ApiModelProperty(value = "药品")
    private Long drugsId;

    @ApiModelProperty(value = "批号")
    private String drugsLotNo;

    @ApiModelProperty(value = "销售价格")
    private BigDecimal drugsPrice;

    @ApiModelProperty(value = "成本价格")
    private BigDecimal costPrice;

    @ApiModelProperty(value = "采购数量")
    private Integer drugsNum;

    @ApiModelProperty(value = "采购日期")
    private Date planDate;

}
